﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="XZKaoQinList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.XZModel.XZKaoQinList" %>


<form id="pagerForm" method="post" action="XZModel/XZKaoQinList.aspx">
<input type="hidden" name="KQID" value="<%=KQID %>" />
<input type="hidden" name="GongHao" value="<%=GongHao %>" />
<input type="hidden" name="Year" value="<%=Year %>" />
<input type="hidden" name="Month" value="<%=Month %>" />
<input type="hidden" name="KQDateFrom" value="<%=KQDateFrom %>" />
<input type="hidden" name="KQDateTo" value="<%=KQDateTo %>" />
<input type="hidden" name="KQType" value="<%=KQType %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="XZModel/XZKaoQinList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                 <td>
                    序号： 
                </td>
                <td>
                    <input name="KQID" type="text" size="4" value="<%=KQID %>"   />
                </td>
                <td>
                    工号/姓名： 
                </td>
                <td>
                    <input name="GongHao" type="text" size="6" value="<%=GongHao %>"   />
                </td>
                <td>
                    异常类型： 
                </td>
                <td>
                   <select name="KQType" class="combox">
                        <option value="" <%= KQType==""?"selected":"" %>>所有...</option>
                        <option value="加班" <%= KQType=="加班"?"selected":"" %>>加班</option>
                        <option value="迟到" <%= KQType=="迟到"?"selected":"" %>>迟到</option>
                        <option value="早退" <%= KQType=="早退"?"selected":"" %>>早退</option>
                        <option value="请假" <%= KQType=="请假"?"selected":"" %>>请假</option>
                        <option value="漏打卡" <%= KQType=="漏打卡"?"selected":"" %>>漏打卡</option>
                   </select>
                </td>
                <td>
                 考勤时间： 
                </td>
                <td>                   
                     <select name="Year" class="combox" >
                        <%=GetYearList()%>
                    </select>
                   <select name="Month" class="combox" >
                        <option value="1" <%=Month==1?"selected":"" %>>1月</option>
                        <option value="2" <%=Month==2?"selected":"" %>>2月</option>
                         <option value="3" <%=Month==3?"selected":"" %>>3月</option>
                         <option value="4" <%=Month==4?"selected":"" %>>4月</option>
                         <option value="5" <%=Month==5?"selected":"" %>>5月</option>
                        <option value="6" <%=Month==6?"selected":"" %>>6月</option>
                         <option value="7" <%=Month==7?"selected":"" %>>7月</option>
                         <option value="8" <%=Month==8?"selected":"" %>>8月</option>
                         <option value="9" <%=Month==9?"selected":"" %>>9月</option>
                        <option value="10" <%=Month==10?"selected":"" %>>10月</option>
                         <option value="11" <%=Month==11?"selected":"" %>>11月</option>
                         <option value="12" <%=Month==12?"selected":"" %>>12月</option>                        
                   </select>
                  </td>
                  <td >               
                  
                   <select name="KQDateFrom" class="combox" >
                    <%=GetDayList(KQDateFrom) %>
                   </select>-
                </td>
                <td>
              
                    <select name="KQDateTo" class="combox" >
                    <%=GetDayList(KQDateTo)%>
                   </select>
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
        
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="XZModel/XZKaoQinAdd.aspx?KQType=1" target="dialog" rel="XZKaoQinAdd"  title="加班"><span>加班</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="XZModel/XZKaoQinAdd.aspx?KQType=2" target="dialog" rel="XZKaoQinAdd"  title="迟到"><span>迟到</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="XZModel/XZKaoQinAdd.aspx?KQType=3" target="dialog" rel="XZKaoQinAdd"  title="早退"><span>早退</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="XZModel/XZKaoQinAdd.aspx?KQType=4" target="dialog" rel="XZKaoQinAdd"  title="请假" height="350"><span>请假</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="XZModel/XZKaoQinAdd.aspx?KQType=5" target="dialog" rel="XZKaoQinAdd"  title="漏打卡"><span>漏打卡</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeleteXZKaoQin&KQID={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="MarketModel/Execl/ExportMMarketitemList.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&GongHao=<%=GongHao %>&KQType=<%= Server.UrlEncode( KQType) %>&KQDateFrom=<%=KQDateFrom %>&KQDateTo=<%=KQDateTo %>" target="_blank" title="确定要导出吗?"><span>导出</span></a></li>
            <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="112">
        <thead>
            <tr  >
                <th width="60" <%=GetDataListOrder("KQID") %>>序号</th>
                <th width="80" <%=GetDataListOrder("GongHao") %> >
                    工号
                </th>
                <th width="80"  <%=GetDataListOrder("RealName") %> >
                    姓名
                </th>
                <th width="100" <%=GetDataListOrder("KQDate") %>>
                    考勤日期
                </th>               
                <th width="100" <%=GetDataListOrder("KQType") %>>
                    异常类型
                </th>
                <th width="80">
                    时间
                </th>
                <th width="80" <%=GetDataListOrder("KQState") %>>
                    考勤状态
                </th>
                <th>
                    备注
                </th>
            </tr>   
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("KQID") %>">    
                <td><%# Eval("KQID") %></td>            
                <td><%# Eval("GongHao")%></td>
                <td><%# Eval("RealName")%></td>
                <td><%# Convert.ToDateTime(Eval("KQDate")).ToString("yyyy-MM-dd")%></td>
                <td><%# Eval("KQType")%></td>
                <td><%# GetValue(Eval("KQType"),Eval("KQValue"))%></td>
                <td><%# Eval("KQState")%></td>
                <td><%# Eval("Remark")%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>